<?php
defined('BASEPATH') or exit('No direct script access allowed');
?><!DOCTYPE html><html lang="en">
	<head>
		<!--加载header文件-->
		<?php
include_once 'public/views/header.php';
?>
		<?php
include_once 'public/home/html/img_big.php';
include_once 'public/home/html/laydate.php';
include_once "public/home/html/search-select.php";
include_once 'public/home/html/alert.php';
include_once 'public/home/html/echarts.php';
?>

		<script src="public/xr/xrDatatable.js"></script>
		<script src="public/js/list.js"></script>
		<script src="cust/js/adminList.js"></script>
		<script src="public/home/js/function.js"></script>
		<script src="cust/js/result_all.js?v=<?php time();?>"></script>
	</head>
	<style>
		body{
			background: white
		}
		.search{
			padding: 20px 50px 0px 50px;
		}
		.row{
			padding: 20px 50px 0px 50px;
			width: 100%
		}
		#information{
			display: none
		}
		.dept_name{
			padding-left: 10px;
		}
		.test{
			float: left;
			width: 30%!important;
			height: 300px!important;
		}
		.searchable-select-dropdown{
			z-index: 999
		}
	</style>
	<body>
		<form>
		<div class="search">
			<div class="widget-box">
				<div class="widget-header">
					<h4 class="widget-title">搜索</h4>

					<div class="widget-toolbar">
						<a href="#" data-action="collapse">
							<i class="ace-icon fa fa-chevron-up"></i>
						</a>
					</div>
				</div>
				<div class="widget-body" style="display: block;">
					<div class="widget-main">
						<select name="name" id="name">
							<option value="-1">请选择成果人</option>
							<?php foreach ($user as $k => $v) : ?>
								<option value="<?=$v['username']?>,<?=$v['identity_id']?>"><?=$v['username'].'-'.$v['identity']?></option>
							<?php endforeach ?>
						</select>
						<select name="dept" id="dept">
							<option value="-1">单位</option>
							<?php foreach ($dept as $k => $v): ?>
								<option value="<?=$v['dept_name']?>"><?=$v['dept_name']?></option>
							<?php endforeach?>
						</select>
						<input type="text"  placeholder="时间(年度)" id="year">
						<input type="text"  placeholder="业绩（成果）归属年份" id="submit_year">
						<select name="type" id="type">
							<option value="-1">成果类型</option>
							<?php foreach ((new ResultsType)->getAll() as $k => $v): ?>
								<option value="<?=$v[XPHEnum::Value]?>"><?=$v[XPHEnum::Caption]?></option>
							<?php endforeach?>
						</select>
						<label>
								<input name="search_type" type="radio" class="ace" checked value="1">
								<span class="lbl">列表</span>
						</label>
						<label>
							<input name="search_type" type="radio" class="ace" value="2">
							<span class="lbl">图表</span>
						</label>
						<button class="searchButton" id="search"><i class="icon-search searchForm-title-icon" ></i>搜索</button>
						<button class="resetButton" id="reset"><i class="icon-time" style="font-size:16px; margin-right:7px;"></i>重置</button>
						<button class="searchButton" style="background-color: #449E2F;" onclick="exportData();"><i class="icon-signout"></i>导出为excel</button>
					</div>
				</div>
			</div>
		</div>

		<div class="row">
			<div  id="information">

			</div>
		</div>

		<div class="row" id="result">

		</div>

		<div class="page-container tu">
			<div class="test"></div>
			<div class="test"></div>
			<div class="test"></div>
			<div class="test"></div>
			<div class="test"></div>
			<div class="test"></div>
			<div class="test"></div>
			<div class="test"></div>
			<div class="test"></div>
			<div class="test"></div>
			<div class="test"></div>
			<div class="test"></div>
		</div>
		</form>
	</body>

</html>